<?php

Route::group([
    'prefix' => 'admin',
    'middleware' =>'auth.admin',
], function () {
    Route::get('role/list', [
        'as' => 'AdminRoleList',
        'alias' => '角色列表',
        'uses' => 'Admin\RoleController@roleList'
    ]);

    Route::get('role/edit', [
        'as' => 'AdminRoleEdit',
        'alias' => '角色编辑',
        'uses' => 'Admin\RoleController@roleShowEdit'
    ]);

    Route::post('role/edit', [
        'as' => 'AdminRoleEditAction',
        'alias' => '角色编辑保存',
        'uses' => 'Admin\RoleController@saveEdit'
    ]);

});